import React from "react";
// import ReactDOM from "react-dom";
//18版本的用法
import App from './App'
import {createRoot} from "react-dom/client";
import { BrowserRouter } from "react-router-dom";

let root=createRoot(document.querySelector('#root'))

root.render(<BrowserRouter><App/></BrowserRouter>)
// ReactDOM.render(<App/>,document.querySelector('#root'))